package hu;

import java.util.*;

public class hu42 {
    private static String[] ones = new String[]{
            "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine",
            "ten", "eleven", "twelve", "thirteen", "forteen", "fifteen", "sixteen", "seventeen",
            "eighteen", "nineteen", "twenty"};

    private static String[] twieties = new String[]{"zero", "ten", "twenty", "thirty", "forty",
            "fifty", "sixty", "seventy", "eighty", "ninety"};

    private static String[] POWER = {"", "thousand", "million", "billion"};
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long input = sc.nextLong();
        List<Integer> list = new ArrayList<>();
        while(input != 0){
            list.add(Math.toIntExact(input % 1000));
            input /= 1000;
        }
        String re = "";
        for (int i = list.size() - 1; i >= 0; i--) {
            int a = list.get(i);
            if(a == 100){
                re += ones[a / 100] + " hundred ";
                a = 0;
            }

            if(a > 100){
                re += ones[a / 100] + " hundred " + "and ";
                a = a % 100;
            }
            if(a != 0 && a <= 20){
                re += ones[a] + " ";
            }
            if(a != 0 && a > 20){
                re += twieties[a /10] + " ";
                if(a % 10 != 0)
                    re += ones[a % 10] + " ";
            }
            re += POWER[i] + " ";
        }
        System.out.println(re);
    }
}
